<?php

class DefaultController extends LController {

    public function init() {
        parent::init();
        //$this->layout = "//layouts/main";
        $this->commonScript();

        Yii::app()->clientScript->registerCssFile(THEME_CSS_URL . '/base.css');
        Yii::app()->clientScript->registerCssFile(THEME_CSS_URL . '/master.css');
        Yii::app()->clientScript->registerCssFile(THEME_CSS_URL . '/module_Sip.css');
    }

    public function actionIndex() {
        $view = Yii::app()->request->getParam("view", "index");
        $type = Yii::app()->request->getParam('type',0);
        if($type==1){
            $this->layout = "//layouts/main_other";
        }

        $this->render($view);
    }
    
    

    

}
